package com.xxx.notice.client;

import com.xxx.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author blijojo
 * @date 2021/6/26 22:48
 */
@FeignClient("tensquare-article")
public interface ArticleClient {

    /**
     * 根据ID查询文章
     * @param articleId 文章id
     * @return Result
     */
    @GetMapping("/article/{articleId}")
    Result findById(@PathVariable("articleId") String articleId);

}
